package com.company.show.composite;

import java.util.Arrays;

/**
 * @author yingfing
 * @create 2020--10--07 15:53
 * @describe
 */
public class Test {
    public static void main(String[] args) {
        Head head = new Head();
        head.setEyes(Arrays.asList(new Eye(), new Eye()));
        head.setMouth(new Mouth());
        head.setNose(new Nose());
    }
}
